import axios from 'axios';
const api: String = 'https://cnodejs.org/api/v1';

export const get = (url: string) => axios.get(`${api}${url}`);

export const post = (url: string, data: any) => axios.post(`${api}${url}`, data);